//
//  WXApiManager.m
//  SDKSample
//
//  Created by Jeason on 15/7/14.
//
//

#import "WXApi.h"
#import "WXApiRequestHandler.h"
#import "WXApiManager.h"


@implementation WXApiRequestHandler

#pragma mark - Public Methods

+ (NSString * )jumpToBizPay:(WxPayModel *)model {
    
    //调起微信支付
    PayReq* req = [[PayReq alloc] init];
    req.partnerId = model.partnerid;
    req.prepayId = model.prepayid;
    req.nonceStr = model.noncestr;
    req.timeStamp = model.timestamp.intValue;
    req.package = model.package;
    req.sign = model.sign;
    BOOL result = [WXApi sendReq:req];
    
    if (result) {
        
        return @"支付成功";
        
    }else{
        
        return @"支付失败";
    }
   
}


@end
